package com.ds.infrastructure.hyperspace.common.flow;

import com.ds.infrastructure.hyperspace.common.flow.handler.FlowHandler;

/**
 * @author  Weishaoying
 */
public class FlowHandlerWrapper<H extends FlowHandler> {

    private H flowHandler;

    private FlowHandlerWrapper<H> nextFlowHandlerWrapper;

    public FlowHandlerWrapper(H flowHandler) {
        this.flowHandler = flowHandler;
    }

    public H getFlowHandler() {
        return flowHandler;
    }

    public FlowHandlerWrapper<H> getNextFlowHandlerWrapper() {
        return nextFlowHandlerWrapper;
    }

    public void setNextFlowHandlerWrapper(FlowHandlerWrapper<H> nextFlowHandlerWrapper) {
        this.nextFlowHandlerWrapper = nextFlowHandlerWrapper;
    }

}
